home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / less / dist / patch1 / text0000.txt < prev   
Encoding:
Text File  |  1991-03-07  |  526 b   |  24 lines

  1. As a number of people have pointed out, a bug in less causes
  2. a core dump when "less -?" is invoked.  Here is a quick fix
  3. in ifile.c:
  4.  
  5. *** ifile.c.170    Wed Mar  6 16:15:03 1991
  6. --- ifile.c.171    Wed Mar  6 16:15:08 1991
  7. ***************
  8. *** 153,158 ****
  9. --- 153,160 ----
  10.   get_filename(ifile)
  11.       IFILE ifile;
  12.   {
  13. +     if (ifile == NULL)
  14. +         return (NULL);
  15.       return (int_ifile(ifile)->h_filename);
  16.   }
  17.   
  18. My apologies for any inconvenience this may have caused.
  19.  
  20. Mark Nudelman
  21. {uunet,sun,decwrl,hplabs}!pyramid!ctnews!unix386!mark
  22.  
  23.  
  24.